package top.jlzhou.jobs.service;

import top.jlzhou.jobs.entity.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author J.L.Zhou
 * @since 2018-10-22
 */
public interface UserInfoService extends IService<UserInfo> {

	long login(String userName,String userPwd,String ip)throws Exception;
	
	void check(Long token,String ip)throws Exception;
	
	void logout(Long token,String ip)throws Exception;
	
	UserInfo getByToken(Long token);
	
	void save(Long token,UserInfo user)throws Exception;
	
	void updatePwd(Long token,String pwd1,String pwd2)throws Exception;
}
